package com.decade.mapper;

import com.decade.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface GoodsMapper {
    //查询
    public List<Goods> findGoods(Goods goods);
    //根据id查询
    public Goods findGoodsById(Integer id);
    //添加
    public Integer addGoods(Goods goods);
    //修改
    public Integer updateGoods(Goods goods);
    //删除
    public Integer delGoods(Integer id);
}
